<template>
	<view class="container">
		<!-- F1广告 开始 -->
		<view class="banner">
			<image src="@/static/image/myVilage/myVilage-banner.png" mode="widthFix"></image>
		</view>
		<!-- F1广告 结束 -->
		
		<!-- F2简介 开始 -->
		<view class="description">
			<text>{{desc}}</text>
		</view>
		<!-- F2简介 结束 -->
		
		<!-- F3新闻列表 开始 -->
		<view class="title">村组新闻</view>
		<news-card
		v-for="(item,i) in newsList"
		:key='i'
		:url="item.pic"
		:content="item.content"
		:subHead="item.time"
		@click='goDetail(i)'
		/>
		
		
		<!-- F3新闻列表 结束 -->
	</view>
</template>

<script>
	import newsCard from '@/components/newsCard.vue'
	export default {
		components:{
			newsCard
		},
		data() {
			return {
				desc:'普安镇，隶属于四川省广元市剑阁县，位于四川省北部，剑阁县中北部，地处四川盆地北部边缘，剑阁县中部偏北部的山地',
				newsList:[
					{
						pic:require('@/static/image/partService/news-pic.png'),
						content:'在传承中开发 在开发中保护—普安县高质量发展四',
						time:'2021-06-02 17:06:11'
					},
					{
						pic:require('@/static/image/partService/news-pic.png'),
						content:'州领导和州直部门包保联系指导工作组赴普安县调研,州领导和州直部门包保联系指导工作组赴普安县调研...',
						time:'2021-06-02 17:06:11'
					},
					{
						pic:require('@/static/image/partService/news-pic.png'),
						content:'普安：党员干部群众热议省第十三次党代会开幕,普安：党员干部群众热议省第十三次党代会开幕',
						time:'2021-06-02 17:06:11'
					}
				]
			};
		}
	}
</script>

<style lang="scss">
	page {
		background: $page-color-base;
	}
	.container{
		padding: 32rpx;
		.banner{
			image{
				display: block;
				border-radius: 8rpx;
				width: 686rpx;
				height: 320rpx;
			}
		}
		.description{
			color: #999CA3;
			min-height: 128rpx;
			margin-top: 24rpx;
			border-left: 4rpx solid #3E9CF9;
			padding: 10rpx 20rpx;
			background-repeat: no-repeat;
			background-size: 16%;
			background-position: right;
		}
		.title{
			padding: 32rpx 0rpx;
			font-weight: bold;
		}
	}
</style>
